<%unless @task_exists%>
<% inlineform_action = params[:add_more] ? "inlineform:save_and_add_more" : "inlineform:save" %>
<%= "{\"action\": \"#{inlineform_action}\",\"exists\": \"#{@task_exists}\", \"record\": \"<option value='#{@task.id}' selected type='#{params[:association] == "account" ? "account_level" : "company_level"}'>#{@task.name}</option>\"}".html_safe%>
<%else%>
<%= "{\"exists\": \"#{@task_exists}\"}".html_safe%>
<%end%>